// CConsoleSampleWinMFCDlg.h : header file
//

#pragma once
#include "afxwin.h"
#include "ColorListBox.h"

#include "anchor.h"
#include "ACEdit.h"

#include "../ConsoleLib/ConsoleInclude.h"

class CConsoleWinMFC;

// CCConsoleSampleWinMFCDlg dialog
class CCConsoleSampleWinMFCDlg : public CDialog
{
// Construction
public:
	CCConsoleSampleWinMFCDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CCONSOLESAMPLEWINMFC_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	
	afx_msg void OnLbnSetfocusList1();
	afx_msg void OnEnUpdateEdit1();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
	afx_msg void OnLbnDblclkList2();


	CDlgAnchor m_Anchor;
	CColorListBox m_ctrConsoleScreen;
	CListBox m_ctrCommandList;
	CACEdit m_ctrEditBox;
	CFont m_Font;
	//CListBox m_ctrAutoComplete;

public:
	virtual BOOL DestroyWindow();


private:
	friend class CConsoleWinMFC;
	CConsoleWinMFC * m_pConsole;
	CCommandHistory m_kHistory;
	CConsoleSystem	m_kConsoleSystem;

};
